home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / tcoop.arc / TCOOP2.ARC / KEYBRD.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1991-10-26  |  468 b   |  23 lines

  1. // keyboard driver: keybrd.cpp
  2.  
  3. #include "keybrd.h"
  4.  
  5. unsigned KeyEvent(void)
  6. // Looks for a key pressed. If found, the key
  7. // is removed from the keyboard buffer and returned.
  8. {
  9.   unsigned E;
  10.   E = bioskey(1);
  11.   if (E != 0) E = bioskey(0);
  12.   return E;
  13. }
  14.  
  15. int IsShiftArrow(unsigned k)
  16. // Returns true if k is a shift-arrow key combination
  17. {
  18.    return (k == ShiftLeft)  || (k == ShiftRight) ||
  19.           (k == ShiftUpKey) || (k == ShiftDnKey);
  20. }
  21.  
  22.  
  23.